<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <title>政府数据</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/global.css">
    <script src="../lib/autoSize.js"></script>
    <style>
        .title h3{
            font-size: 0.75rem;
        }
        .ext{
            font-size: 0.6rem;
            color: #999999;
            margin-top: 0.4rem;
        }
    </style>
</head>

<body>
    <header>
        <div class="left-btn">
            <img class="back" src="../images/header/back.png" alt="" onclick="history.go(-1)">
        </div>
        <h1 class="">政府数据</h1>
        <div class="right-btn"></div>
    </header>

    <main>
        <div>
            <script type="text/html" id="listTemp">
                {{each}}
                <div class="area_white list-item" data-url="{{if $value.genre==4}}{{else}}detail.html{{/if}}?id={{$value.id}}&title={{$value.titleName}}">
                    <h3>{{$value.titleName}}</h3>
                    <div class="ext"><span>{{$value.source}}</span> <span>{{$value.createTime | DateFormat 'yyyy-MM-dd'}}</span></div>
                </div>
                {{/each}}
            </script>
        </div>
    </main>


    <script src="../lib/jquery-3.2.1.min.js"></script>
    <script src="../lib/template-web.js"></script>
    <script src="../lib/fastclick.js"></script>
    <script src="../lib/layer.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/jquery.list.js"></script>

    <script>
        $(function () {
            FastClick.attach(document.body);
            $('header h1').text(tools.getUrlParam('name'));
        });


        //使用 data-url 跳转
        tools.goSkip();
        $('#listTemp').renderDataList({
            action:'getGovOpenContentListV10'
        })
    </script>
</body>

</html>